package com.bstek.weixin;

import com.bstek.weixin.entity.Department;
import com.bstek.weixin.entity.WeixinUser;
import com.bstek.weixin.service.IUserListService;
import com.bstek.weixin.service.impl.UserListImpl;

import java.util.Date;

/**
 * @Description TEDO
 * @Author snail
 * @Date 2019/1/8
 * @Version 1.0
 */
public class Test {

    public static void main(String[] args) throws Exception{
        /*Department dept=new Department(2,"test2",1,
                3,new Date(),"bgy");*/
        WeixinUser user =new WeixinUser();
        user.setUserid("test001");
        user.setName("测试002");
        user.setAlias("ceshi");
        user.setMobile("18511236285");
        user.setDepartment("[1]");
        user.setOrder("[5]");
        user.setPosition("测试经理");
        user.setTelephone("012-8542");
        user.setGender("2");
        user.setEnable(1);
        IUserListService userList=new UserListImpl();
        boolean flag=userList.deleteUser("test001");
        if(flag){
            System.out.println("创建成功...");
        }else{
            System.out.println("创建失败...");
        }
    }



}
